﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace GuanYijia.Application.IntPut
{
    /// <summary>
    /// 生产任务主表
    /// </summary>
    [JsonSerializable(typeof(AddProductionTaskHeadDto))]
    public class AddProductionTaskHeadDto
    {
        /// <summary>
        /// 生产编号
        /// </summary>
        public string head_no { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public int product_id { get; set; }
        /// <summary>
        /// 商品条码
        /// </summary>
        public string product_code { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string product_name { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string product_unit { get; set; }

        /// <summary>
        /// 订购数量
        /// </summary>
        public decimal order_quantity { get; set; }

        /// <summary>
        /// 生产数量
        /// </summary>
        public decimal production_quantity { get; set; }
        /// <summary>
        /// 总需物料数量
        /// </summary>
        public decimal bom_quantity { get; set; }
        /// <summary>
        /// 物料总价
        /// </summary>
        public decimal bom_allPrice { get; set; }
        /// <summary>
        /// 计划完工
        /// </summary>
        public DateTime finish_date { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        public List<AddOtherAddItemIntPut> items { get; set; }
    }
}
